<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <!-- Bootstrap -->
    <link rel="stylesheet" href="<?php echo base_url();?>public/bootstrap/css/docs.css" />
    <link rel="stylesheet" href="<?php echo base_url();?>public/bootstrap/css/bootstrap.min.css" />
    <script src="<?php echo base_url();?>public/js/jquery-1.7.1.min.js"></script>
    <script src="<?php echo base_url();?>public/bootstrap/js/bootstrap.min.js"></script>
    
    <!-- CKEditor & CKFinder-->
    <script src="<?php echo base_url();?>library/ckeditor/ckeditor.js"></script>
    <script src="<?php echo base_url();?>library/ckfinder/ckfinder.js"></script>
    
    <link rel="stylesheet" href="<?php echo base_url();?>public/css/myStyle.css" />
    
    <script>
        $(function(){
        	function redirect(url){
        		window.location = url;
        	}
        	function confirmDelete(){
        		if(confirm('Are you sure you want to delete this item ?')) return true;
        		else return false;
        	} 
        	
        	$('.confirmDelete').click(function(){
        		if(confirmDelete()){
        			url = $(this).attr('rel');
        			redirect(url);
        		}
        	});	
        });
    </script>
</head>
<body>
	<div id="header">
		<?php $this->load->view("admin/layout/header");?>
	</div>
	<div id="container">
        <?php $this->load->view($template,$data);?>
	</div>
	<div id="footer">
        
    </div>
</body>
</html>